﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using Jint.Native;

namespace jintTest
{
   class test : JsObject
   {
      public test()
      {
         this["hej"] = new JsFunctionWrapper(Hej, null);

         for(int i = 0; i < 10; i++)
         {
            JsObject obj = new JsObject();
            obj["apa"] = new JsString("hej", null);
            this["func" + i] = obj;
         }
      }

      public JsInstance Hej(JsInstance[] args)
      {
         return new JsString("walla", null);
      }
   }
}
